package com.itdata.webservice.impl;

import javax.xml.ws.Endpoint;

/**   
 * @Title: ServerTest.java 
 * @Package com.itdata.webservice.impl 
 * @Description: TODO 
 * @author 陈凯 chenkai-ds@petrochina.com.cn   
 * @date 2013-5-14 下午9:11:01 
 * @version V1.0   
 */

public class ServerTest {
		public ServerTest(){
			// 发布User服务接口
			Endpoint.publish("http://localhost:8090/userInfoServices", new UserServicesImpl());
		}
		public static void main(String[] args) {
			// 启动服务
			new ServerTest();
			System.out.println("Server ready...");   
			try {
				Thread.sleep(1000*300);//休眠五分分钟，便于测试   
			} catch (InterruptedException e) {
				e.printStackTrace();
			}   
			System.out.println("Server exit...");   
			System.exit(0);
		}

}
